import request from '@/utils/request'

// 查询柱状图
export function getChartData(query) {
  return request({
    url: 'chart/data',
    method: 'get',
    params: query
  })
};
// 查询产值折线图
export function getBroken(query) {
  return request({
    url: 'chart/broken/line',
    method: 'get',
    params: query
  })
};
// 查询销售折现图
export function getSalesVolume(data) {
  return request({
    url: 'chart/sales/volume',
    method: 'post',
    data
  })
};
// 查询销售柱状图
export function getSalesHistogram(data) {
  return request({
    url: 'chart/sales/histogram',
    method: 'post',
    data
  })
}

